<template>
    <div>
        <div
            class="nav-arrow"
            :style="{ borderBottom: borderBol ? '1px solid #eee' : 0 }"
            @click="() => click(name)"
        >
            <div class="text">{{ name }}</div>
            <image class="icon" :src="ArrowIcon" mode="scaleToFill" />
        </div>
    </div>
</template>
<script setup lang="ts">
import ArrowIcon from '@/assets/mine/arrow-right.png'
import { defineProps, withDefaults } from 'vue'

interface Props {
    name: string
    borderBol: Boolean
    click: Function
}
withDefaults(defineProps<Props>(), {
    name: '',
    borderBol: false,
    click: () => {}
})
// withDefaults()
</script>
<style scoped lang="scss">
.nav-arrow {
    height: 39px;
    background: #fff;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .text {
        color: #333;
        font-size: 12px;
    }
    .icon {
        width: 23px;
        height: 23px;
    }
}
</style>
